﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SortCheckById.cs" company="SmartPlan">
//   SmartPlan 2011
// </copyright>
// <summary>
//   The sort check by id.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DbDiff.Common.DataAccess
{
    using System.Collections;

    /// <summary>
    /// The sort check by id.
    /// </summary>
    public class SortCheckById : IComparer
    {
        #region IComparer Members

        /// <summary>
        /// The compare.
        /// </summary>
        /// <param name="x">
        /// The x.
        /// </param>
        /// <param name="y">
        /// The y.
        /// </param>
        /// <returns>
        /// The compare.
        /// </returns>
        public int Compare(object x, object y)
        {
            return ((DbObjectsDs.CheckRow)x).Id.CompareTo(((DbObjectsDs.CheckRow)y).Id);
        }

        #endregion
    }
}